#!/usr/bin/python
fp_word = open('train.word.data')
fp_pos = open('train.pos.data')
fp = open('train.crf','w')
while True:
	l = fp_word.readline().strip('\r\n')
	if l == '':
		break
	words = l.split()
	l = fp_pos.readline().strip('\r\n')
	postags = l.split()
	for i in range(len(postags)):
		fp.write(words[i] + '\t' + postags[i] + '\n')
	fp.write('\n')
